<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>js字符串和数组对象</title>
</head>
<body>
	
</body>

<script>
	str='linux';
	alert(str.length); //获取字符串的长度
	

</script>
</html>